Completed
Push — master ( b3bd19...c86cb5 )
by D
05:13 queued 18s
created

Lightbox.showTargets   A

Complexity

Conditions 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
1
class Lightbox {
2
    constructor(options) {
3
        this.targets = typeof options.targets === 'string' ? document.querySelectorAll(options.targets) : options.targets;
4
        this.showTargets
0 ignored issues
show
introduced by
The result of the property access to this.showTargets is not used.
Loading history...
5
    }
6
7
    showTargets() {
8
        console.log(this.targets)
0 ignored issues
show
Debugging Code introduced by
console.log looks like debug code. Are you sure you do not want to remove it?
Loading history...
9
    }
10
}